extends Label
@export var show_time = 0.5
@export var pos = Vector2(0,-20)

# Called when the node enters the scene tree for the first time.
func show_text(value):
	text = str(value)
	pos += position
	var tween = get_tree().create_tween()
	tween.tween_property(self,"position",pos,show_time)
	tween.finished.connect(func():
		queue_free()	
	)
